package per.mapt.spring.boot;


import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import per.mapt.spring.boot.service.HelloService;

@RestController
@SpringBootApplication
public class Example {
    private Logger logger = LoggerFactory.getLogger(Example.class);
    @Autowired
    private HelloService service;

    @RequestMapping("/")
    public String home() {
        return service.hello("1234");
    }

    public static void main(String[] args) throws Exception {
        SpringApplication.run(Example.class, args);

    }

}